package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Data
@TableName("d_user_times_card")
public class UserTimesCard extends Model<UserTimesCard> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("次卡id")
    private Integer cardId;

    @TableField(exist = false)
    private TimesCard timesCard;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("所属门店")
    private Integer storeId;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("到期时间")
    private Date dueDate;

    @ApiModelProperty("使用次数")
    private Integer times;

    @ApiModelProperty(value = "添加时间", hidden = true)
    private Date addTime;

    @ApiModelProperty(value = "修改时间", hidden = true)
    private Date updateTime;
}
